package com.example.mapping.sevice;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.mapping.constant.Constants;
import com.example.mapping.domain.Dict;
import com.example.mapping.domain.ValueMapping;
import com.example.mapping.mapper.ValueMappingMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author baoyoujia
 */
@Service
public class ValueMappingService extends ServiceImpl<ValueMappingMapper, ValueMapping> {

    public List<ValueMapping> getValueMappingByIds(List<Long> valueMappingIds) {
        LambdaQueryWrapper<ValueMapping> dictQueryWrapper = new LambdaQueryWrapper<ValueMapping>().in(ValueMapping::getId, valueMappingIds).in(ValueMapping::getSysDelete, Constants.Number.INT_0, Constants.Number.INT_1);
        return list(dictQueryWrapper);
    }
}
